<?php
/**
 * PostCategory model
 *
 * @property int $post_id
 * @property int $category_id
 * @property Category $category
 * @property Post $post
 */
class PostCategory extends MModel {

    static $table_name = 'ml_blog_posts_categories';
    static $belongs_to = array(
        array('ml_blog_posts', 'class_name' => 'Post'),
        array('ml_blog_categories', 'class_name' => 'Category'),
    );
    static $alias_attribute = array(
        'category' => 'ml_blog_categories',
        'post' => 'ml_blog_posts',
    );

}

?>
